/*
 * Copyright (c) 2020-2022 Jinsp-tech. All rights reserved.
 */

package com.jinsp.networklibrary.command;

/**
 * Created by luoshuai on 1/15/22
 * <p>
 * 封装TCP命令以及数据
 */
public class TCPCommandData {

    private int commandNumber;
    private Object data;
    private int state;

    public TCPCommandData(int commandNumber, Object data) {
        this.commandNumber = commandNumber;
        this.data = data;
    }

    public int getCommandNumber() {
        return commandNumber;
    }

    public void setCommandNumber(int commandNumber) {
        this.commandNumber = commandNumber;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "TCPCommandData{" +
                "commandNumber=" + commandNumber +
                ", data=" + data +
                ", state=" + state +
                '}';
    }
}
